package practice.oop;

import java.util.Arrays;

public class Test {

    public static void main(String[] args) {
        Student stu1 = new Student("张三",12);
        System.out.println(stu1);
        Student[] stus = new Student[3];
        stus[0] = new Student("李四",85);
        stus[1] = new Student("王五",36);
        stus[2] = new Student("赵六",45);
        System.out.println(Arrays.toString(stus));
        stus[0] = stu1;
        System.out.println(Arrays.toString(stus));

    }
}
